de.ueberdosis.mp3info.id3v2
Class ID3V2Tag
java.lang.Object
|
+--de.ueberdosis.mp3info.id3v2.ID3V2Tag
- All Implemented Interfaces:
- Defines
- public class ID3V2Tag
- extends java.lang.Object
- implements Defines
Contains the whole V2Tag.
As yet, only 1 header as well as all frames that are contained in this
one tag are included.
Constructor Summary |
ID3V2Tag()
|
ID3V2Tag(de.ueberdosis.mp3info.id3v2.ID3V2Tag oldTag)
Deep copy constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ID3V2Tag
public ID3V2Tag()
ID3V2Tag
public ID3V2Tag(de.ueberdosis.mp3info.id3v2.ID3V2Tag oldTag)
- Deep copy constructor
- Parameters:
oldTag
- Tag to be copied
setHeader
public void setHeader(de.ueberdosis.mp3info.id3v2.Header head)
addFrame
public void addFrame(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm)
removeFrame
public void removeFrame(de.ueberdosis.mp3info.id3v2.ID3V2Frame frm)
getHeader
public de.ueberdosis.mp3info.id3v2.Header getHeader()
getFrames
public java.util.Vector getFrames()
getOriginalSize
public long getOriginalSize()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getEffectiveSize
public long getEffectiveSize()
- The size of the whole tag (effectively used).
- Returns:
- the size of the tag complete with header and footer
getSize
public long getSize()
toByteArray
public byte[] toByteArray()
- A byte-array representation of the tag and all its contained frames
- Returns:
- byte array containing the tag.